<?php
// File: maintain-calendar.php
// Auth: Richard Foard (adapted from legacy calendar display page)
// Edit: rmf 15Oct2013
//
require('../includes/class.main.php');
$manager = new MeetingManager();
include('../template/admin-header.php');
$lookup = new CalendarLookup();
$titles = $lookup->getTitles();
$events = $lookup->getEvents();
?>



<div class="left">
<?php 
include('menu.php');
?>
</div>

<div class="right">
<h2>To change or delete an event, find it in the list below, then click the '<img src="../images/edit_icon_small.png" border="0" alt="edit" />' to its left.</h2>	<br>

<?php
	while ($event = $events->fetch_row())
	{
		echo "<a name=event_".$event[0]."></a>";
		echo "<a href=\"editevent.php?row=$event[0]\"><img src=\"../images/edit_icon_small.png\" border=\"0\" alt=\"edit\" /></a>\n";
		echo "<u>$event[3], $event[4] $event[5], $event[6] $event[2]</u> <br>";
		echo "<b>$event[1]</b><br>";

		for ( $counter = 7; $counter <= 16; $counter++)
		{
			if ($event[$counter] != "") print $event[$counter]."<br>\n";
		}

		print "<br>\n";
	}
?>

</div>

<?php include('../template/admin-footer.php'); ?>
